<%@page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="/include/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编辑用户</title>
<script type="text/javascript">
$(document).ready(function(){
	initView("${action}", null);
});
</script>
<%--<script type="text/javascript" src="js/label/jquery.js"></script>--%>
<link href="js/label/css/lanrenzhijia.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/label/lanrenzhijia.js"></script>
</head>
<body>

	
	<form id="form" enctype="multipart/form-data" onsubmit="return iframeCallback(this,closeCurrent);"  action="cyzj/editCyzjEmp.do?funId=${funId}" method="post" >
    	<div class="pageContent"  layoutH="35">
			<div class="tabs">
				<div class="tabsHeader">
					<div class="tabsHeaderContent">
						<ul>
							<li><a><span>用户基础信息</span></a></li>
						</ul>
					</div>
				</div>
				<div class="tabsContent"  layoutH="74">
				
				<div class="pageFormContent">   
				        <fieldset class="2_ fieldset"> 
				            
				            <dl class="nowrap">
					        	<dt>头像<br>(建议160*160)：</dt>
					        	<dd>
									<div class="unit">
										<div class="upload-wrap">
											<div class="thumbnail">
											<img src="${Dict.prefix('UPLOAD')}${object.iconUrl}" data-width="0" data-height="0" width="80">
											</div>
											<input type="file" name="icon" accept="image/*">
										</div>
									</div>
								</dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>姓名：</dt>
							    <dd>
							    	<input class="required textInput valid" type="text" alt="" value="${object.empName }" size="30" name="empName"/>
					            	<input type="hidden" name="id" value="${object.id }"/>
					            </dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>性别：</dt>
							    <dd>
							    	<label><input type="radio" name="sex" value="M" ${object.sex=='M'?'checked':''}>男</label>
							    	<label><input type="radio" name="sex" value="F" ${object.sex=='F'?'checked':''}>女</label>
					            </dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>负责人：</dt>
							    <dd>
							    	<label><input type="radio" name="isLeader" value="1" ${object.isLeader=='1'?'checked':''}>是</label>
							    	<label><input type="radio" name="isLeader" value="0" ${object.isLeader=='0'?'checked':''}>否</label>
					            </dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>手机（登录帐号）：</dt>
							    <dd><input class="required textInput valid" type="text" alt="" value="${object.mobile }" size="30" name="mobile" ${object.id!=null?"readonly":""}></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>所属单位：</dt>
							    <dd>
								<c:if test="${currEmp!=null}">
							    	<input type="hidden" name="orgId" id="orgId" value="${currEmp.orgId}"/>
							     	<input class="required textInput valid" type="text" alt="" value="${currEmp.dwName}" size="30" id="dwName" name="dwName" readonly></input>
								</c:if>
								<c:if test="${currEmp==null}">
							    <input type="hidden" name="orgId" id="orgId" value="${object.orgId}"/>
									<input class="required textInput valid" type="text" alt="" value="${object.dwName}" size="30" id="dwName" name="dwName"></input>
								</c:if>
								</dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>职务：</dt>
							    <dd><input class="required textInput valid" type="text" alt="" value="${object.zw }" size="30" name="zw"></input></dd>
							</dl>
				            
				            <dl class="nowrap">
					        	<dt>职称：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.zc }" size="30" name="zc"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>学历：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.education }" size="30" name="education"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>专业：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.major }" size="30" name="major"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>地址：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.address }" size="30" name="address"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>电话：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.tel }" size="30" name="tel"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>邮箱：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.email }" size="30" name="email"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>QQ：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.qq }" size="30" name="qq"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>微信：</dt>
							    <dd><input class="textInput valid" type="text" alt="" value="${object.wx }" size="30" name="wx"></input></dd>
							</dl>
				            <dl class="nowrap">
					        	<dt>备注：</dt>
					        	<dd><textarea name="remark" cols="100" rows="3" maxlength="500">${order.remark}</textarea></dd>
					        </dl>
						</fieldset>
					</div>
			</div>
			<div class="tabsFooter">
				<div class="tabsFooterContent"></div>
			</div>
		</div>
	</div>
				
    <div class="formBar">
         <ul>
			<li>
				<input type="hidden" id="approveStatus" name="approveStatus" value="APPROVED"/>
           		<input type="hidden" id="ACTION" name="ACTION" value="${ACTION }"/>
           		<input type="hidden" id="TODO" name="TODO" value="${TODO }"/>
           	</li>
			<li class="EDIT" style="display:none"><div class="button"><div class="buttonContent"><button type="submit" onclick="isConfirm()">保存</button></div></div></li>
        	<li><div class="button"><div class="buttonContent"><button class="close" type="button">取消</button></div></div></li>
    	</ul>
	</div>
</form>

</body>
	<script type="text/javascript">
	
	$(document).ready(function(){
		initView("${ACTION}","${TODO}","${readyMsg}");
		
		 
		setOrg = function (event, ui) { 
	        if (ui != null && ui.item != null) { 
	            $("#orgId",navTab.getCurrentPanel()).val(ui.item.id); 
	        } 
	    };
	    
		$("#dwName",navTab.getCurrentPanel()).autocomplete({
			source: getCyzjOrg,
			minLength:2,
			select: setOrg
		}); 
		
		
	});
</script>
</html>
